﻿using ConsoleApp2.Models;
using ConsoleApp2.Service;
using System.Collections.Generic;
using System.Linq;

namespace ConsoleApp2.Impl;

public class RoleServiceImpl : RoleService
{
    public List<Role> AllRoles { get; set; }

    public RoleServiceImpl()
    {
        AllRoles = LocalRole.LoadUsers(); 
    }

    public List<Role> GetAllRoles()
    {
        return AllRoles;
    }
}